package com.sopaths.crawler;

import org.jsoup.nodes.Document;

import com.sopaths.crawler.tasks.CrawlerTask;
import com.sopaths.crawler.tasks.SummaryTotalPageCrawlerTask;


public abstract class SummaryTotalPageCrawler extends AbstractCrawler {

	@Override
	protected String assembleURL(CrawlerTask<?> task) {
		SummaryTotalPageCrawlerTask innerTask = (SummaryTotalPageCrawlerTask) task;
		return assembleSummaryTotalPageUrl(innerTask);
	}

	protected String assembleSummaryTotalPageUrl(SummaryTotalPageCrawlerTask task) {
		return "";
	}

	@Override
	protected void assembleTaskResult(CrawlerTask<?> task, Document document) {
		SummaryTotalPageCrawlerTask innerTask = (SummaryTotalPageCrawlerTask) task;
		assembleSummaryTotalPageTaskResult(innerTask, document);
	}

	protected void assembleSummaryTotalPageTaskResult(SummaryTotalPageCrawlerTask task, Document document) {

	}
}
